<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: people/include/pcl/people/hog.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('hog_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">hog.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Software License Agreement (Simplified BSD License)</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Point Cloud Library (PCL) - www.pointclouds.org</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * Copyright (c) 2013-, Open Perception, Inc.</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * Copyright (c) 2012, Piotr Dollar &amp; Ron Appel.  [pdollar-at-caltech.edu]</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * All rights reserved.</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * Redistribution and use in source and binary forms, with or without</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * modification, are permitted provided that the following conditions are met: </span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> * 1. Redistributions of source code must retain the above copyright notice, this</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *    list of conditions and the following disclaimer.</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * 2. Redistributions in binary form must reproduce the above copyright notice,</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> *    this list of conditions and the following disclaimer in the documentation</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> *    and/or other materials provided with the distribution. </span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * </span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &quot;AS IS&quot; AND</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment"> * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment"> * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment"> * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment"> * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment"> * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment"> * The views and conclusions contained in the software and documentation are those</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="comment"> * of the authors and should not be interpreted as representing official policies,</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="comment"> * either expressed or implied, of the FreeBSD Project.</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="comment"> * hog.h</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="comment"> * Created on: Nov 30, 2012</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="comment"> * Derived from Piotr Dollar&#39;s MATLAB Image&amp;Video Toolbox      Version 3.00. </span></div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="comment"> * Non-SSE version of the code provided by Matteo Munaro, Stefano Ghidoni and Stefano Michieletto</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160; </div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">#ifndef PCL_PEOPLE_HOG_H_</span></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#define PCL_PEOPLE_HOG_H_</span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160; </div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="preprocessor">#include &lt;pcl/pcl_macros.h&gt;</span></div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160; </div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="keyword">namespace </span>pcl</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;{ </div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;  <span class="keyword">namespace </span>people</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;  {</div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="classpcl_1_1people_1_1_h_o_g.html">   55</a></span>&#160;    <span class="keyword">class </span>PCL_EXPORTS <a class="code" href="classpcl_1_1people_1_1_h_o_g.html">HOG</a></div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    {</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    <span class="keyword">public</span>:</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160; </div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="classpcl_1_1people_1_1_h_o_g.html#afa9465c8bf99748ca57814d970c9b7f4">   60</a></span>&#160;      <a class="code" href="classpcl_1_1people_1_1_h_o_g.html#afa9465c8bf99748ca57814d970c9b7f4">HOG</a> ();</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160; </div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="classpcl_1_1people_1_1_h_o_g.html#a65780ca664c72f0ef9147e511f8e1a8f">   63</a></span>&#160;      <span class="keyword">virtual</span> <a class="code" href="classpcl_1_1people_1_1_h_o_g.html#a65780ca664c72f0ef9147e511f8e1a8f">~HOG</a> ();</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;      </div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;      <span class="keywordtype">void</span> </div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="classpcl_1_1people_1_1_h_o_g.html#a25cc756be0f72a274d5c79aa8a40841f">   76</a></span>&#160;      <a class="code" href="classpcl_1_1people_1_1_h_o_g.html#a25cc756be0f72a274d5c79aa8a40841f">gradMag</a> ( <span class="keywordtype">float</span> *I, <span class="keywordtype">int</span> h, <span class="keywordtype">int</span> w, <span class="keywordtype">int</span> d, <span class="keywordtype">float</span> *M, <span class="keywordtype">float</span> *O ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160; </div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;      <span class="keywordtype">void</span> </div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="classpcl_1_1people_1_1_h_o_g.html#aab8c16acabf7b17ff3606fb2dce0df7f">   91</a></span>&#160;      <a class="code" href="classpcl_1_1people_1_1_h_o_g.html#aab8c16acabf7b17ff3606fb2dce0df7f">gradHist</a> ( <span class="keywordtype">float</span> *M, <span class="keywordtype">float</span> *O, <span class="keywordtype">int</span> h, <span class="keywordtype">int</span> w, <span class="keywordtype">int</span> bin_size, <span class="keywordtype">int</span> n_orients, <span class="keywordtype">bool</span> soft_bin, <span class="keywordtype">float</span> *H) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;      </div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;      <span class="keywordtype">void</span> </div>
<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="classpcl_1_1people_1_1_h_o_g.html#a731373544464f630fdd84c0f22902334">  105</a></span>&#160;      <a class="code" href="classpcl_1_1people_1_1_h_o_g.html#a731373544464f630fdd84c0f22902334">normalization</a> ( <span class="keywordtype">float</span> *H, <span class="keywordtype">int</span> h, <span class="keywordtype">int</span> w, <span class="keywordtype">int</span> bin_size, <span class="keywordtype">int</span> n_orients, <span class="keywordtype">float</span> clip, <span class="keywordtype">float</span> *G ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;      </div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;      <span class="keywordtype">void</span></div>
<div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="classpcl_1_1people_1_1_h_o_g.html#ae0f6d73c46634a078fd0ac1d196dac5e">  120</a></span>&#160;      <a class="code" href="classpcl_1_1people_1_1_h_o_g.html#ae0f6d73c46634a078fd0ac1d196dac5e">compute</a> (<span class="keywordtype">float</span> *I, <span class="keywordtype">int</span> h, <span class="keywordtype">int</span> w, <span class="keywordtype">int</span> n_channels, <span class="keywordtype">int</span> bin_size, <span class="keywordtype">int</span> n_orients, <span class="keywordtype">bool</span> soft_bin, <span class="keywordtype">float</span> *descriptor);</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;      </div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;      <span class="keywordtype">void</span></div>
<div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="classpcl_1_1people_1_1_h_o_g.html#a3d9ba661e57224491bbd474cf95aa495">  129</a></span>&#160;      <a class="code" href="classpcl_1_1people_1_1_h_o_g.html#a3d9ba661e57224491bbd474cf95aa495">compute</a> (<span class="keywordtype">float</span> *I, <span class="keywordtype">float</span> *descriptor) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;      </div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;        <span class="keyword">private</span>:</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    </div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;      <span class="keywordtype">void</span> </div>
<div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="classpcl_1_1people_1_1_h_o_g.html#ac6197755a499fc00fc9f03bc2231c768">  137</a></span>&#160;      <a class="code" href="classpcl_1_1people_1_1_h_o_g.html#ac6197755a499fc00fc9f03bc2231c768">grad1</a> ( <span class="keywordtype">float</span> *I, <span class="keywordtype">float</span> *Gx, <span class="keywordtype">float</span> *Gy, <span class="keywordtype">int</span> h, <span class="keywordtype">int</span> w, <span class="keywordtype">int</span> x ) <span class="keyword">const</span>; </div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;      </div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;      <span class="keywordtype">float</span>* </div>
<div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="classpcl_1_1people_1_1_h_o_g.html#af98b122a2f21e15d930375625138a648">  143</a></span>&#160;      <a class="code" href="classpcl_1_1people_1_1_h_o_g.html#af98b122a2f21e15d930375625138a648">acosTable</a> () <span class="keyword">const</span>;</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;      </div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;      <span class="keywordtype">void</span> </div>
<div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="classpcl_1_1people_1_1_h_o_g.html#a115cd683d7ec725ef850235956f4f464">  149</a></span>&#160;      <a class="code" href="classpcl_1_1people_1_1_h_o_g.html#a115cd683d7ec725ef850235956f4f464">gradQuantize</a> ( <span class="keywordtype">float</span> *O, <span class="keywordtype">float</span> *M, <span class="keywordtype">int</span> *O0, <span class="keywordtype">int</span> *O1, <span class="keywordtype">float</span> *M0, <span class="keywordtype">float</span> *M1, <span class="keywordtype">int</span> n_orients, <span class="keywordtype">int</span> nb, <span class="keywordtype">int</span> n, <span class="keywordtype">float</span> norm ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;      </div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;      <span class="keywordtype">void</span>* </div>
<div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="classpcl_1_1people_1_1_h_o_g.html#a189847b4ea9f5c9a22332d5d0603ad13">  155</a></span>&#160;      <a class="code" href="classpcl_1_1people_1_1_h_o_g.html#a189847b4ea9f5c9a22332d5d0603ad13">alMalloc</a> ( <span class="keywordtype">size_t</span> size, <span class="keywordtype">int</span> alignment ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;      </div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;      <span class="keywordtype">void</span> </div>
<div class="line"><a name="l00161"></a><span class="lineno"><a class="line" href="classpcl_1_1people_1_1_h_o_g.html#a84107eed96d4c86e8c746b9142ae626e">  161</a></span>&#160;      <a class="code" href="classpcl_1_1people_1_1_h_o_g.html#a84107eed96d4c86e8c746b9142ae626e">alFree</a> (<span class="keywordtype">void</span>* aligned) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;      </div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;    <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;      </div>
<div class="line"><a name="l00166"></a><span class="lineno"><a class="line" href="classpcl_1_1people_1_1_h_o_g.html#afff8b80c79c365df8c7ec4d8bdf21a8e">  166</a></span>&#160;      <span class="keywordtype">int</span> <a class="code" href="classpcl_1_1people_1_1_h_o_g.html#afff8b80c79c365df8c7ec4d8bdf21a8e">h_</a>;</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;      </div>
<div class="line"><a name="l00169"></a><span class="lineno"><a class="line" href="classpcl_1_1people_1_1_h_o_g.html#a2c14fbec33e2b1acdc080e5d21221cc6">  169</a></span>&#160;      <span class="keywordtype">int</span> <a class="code" href="classpcl_1_1people_1_1_h_o_g.html#a2c14fbec33e2b1acdc080e5d21221cc6">w_</a>;</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;      </div>
<div class="line"><a name="l00172"></a><span class="lineno"><a class="line" href="classpcl_1_1people_1_1_h_o_g.html#a506a4a0ecba28321471236bcbe40d538">  172</a></span>&#160;      <span class="keywordtype">int</span> <a class="code" href="classpcl_1_1people_1_1_h_o_g.html#a506a4a0ecba28321471236bcbe40d538">n_channels_</a>;</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;      </div>
<div class="line"><a name="l00175"></a><span class="lineno"><a class="line" href="classpcl_1_1people_1_1_h_o_g.html#a196958c0424bafdc837e8eac2fc902ba">  175</a></span>&#160;      <span class="keywordtype">int</span> <a class="code" href="classpcl_1_1people_1_1_h_o_g.html#a196958c0424bafdc837e8eac2fc902ba">bin_size_</a>; </div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;      </div>
<div class="line"><a name="l00178"></a><span class="lineno"><a class="line" href="classpcl_1_1people_1_1_h_o_g.html#a2353ce44ccfa5c5f3e6e6af9956a49f5">  178</a></span>&#160;      <span class="keywordtype">int</span> <a class="code" href="classpcl_1_1people_1_1_h_o_g.html#a2353ce44ccfa5c5f3e6e6af9956a49f5">n_orients_</a>;</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;      </div>
<div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="classpcl_1_1people_1_1_h_o_g.html#ad843ce3dfa59da14e6590c7d29a694d6">  181</a></span>&#160;      <span class="keywordtype">bool</span> <a class="code" href="classpcl_1_1people_1_1_h_o_g.html#ad843ce3dfa59da14e6590c7d29a694d6">soft_bin_</a>;   </div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;      </div>
<div class="line"><a name="l00184"></a><span class="lineno"><a class="line" href="classpcl_1_1people_1_1_h_o_g.html#a4530d2cc7ca324ed6c6232c830b89488">  184</a></span>&#160;      <span class="keywordtype">float</span> <a class="code" href="classpcl_1_1people_1_1_h_o_g.html#a4530d2cc7ca324ed6c6232c830b89488">clip_</a>; </div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;      </div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;    };</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;  } <span class="comment">/* namespace people */</span></div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;} <span class="comment">/* namespace pcl */</span></div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* PCL_PEOPLE_HOG_H_ */</span><span class="preprocessor"></span></div>
<div class="ttc" id="aclasspcl_1_1people_1_1_h_o_g_html"><div class="ttname"><a href="classpcl_1_1people_1_1_h_o_g.html">pcl::people::HOG</a></div><div class="ttdoc">HOG represents a class for computing the HOG descriptor described in Dalal, N. and Triggs,...</div><div class="ttdef"><b>Definition:</b> hog.h:56</div></div>
<div class="ttc" id="aclasspcl_1_1people_1_1_h_o_g_html_a115cd683d7ec725ef850235956f4f464"><div class="ttname"><a href="classpcl_1_1people_1_1_h_o_g.html#a115cd683d7ec725ef850235956f4f464">pcl::people::HOG::gradQuantize</a></div><div class="ttdeci">void gradQuantize(float *O, float *M, int *O0, int *O1, float *M0, float *M1, int n_orients, int nb, int n, float norm) const</div><div class="ttdoc">Helper for gradHist, quantize O and M into O0, O1 and M0, M1 (uses sse).</div></div>
<div class="ttc" id="aclasspcl_1_1people_1_1_h_o_g_html_a189847b4ea9f5c9a22332d5d0603ad13"><div class="ttname"><a href="classpcl_1_1people_1_1_h_o_g.html#a189847b4ea9f5c9a22332d5d0603ad13">pcl::people::HOG::alMalloc</a></div><div class="ttdeci">void * alMalloc(size_t size, int alignment) const</div><div class="ttdoc">Platform independent aligned memory allocation (see also alFree).</div></div>
<div class="ttc" id="aclasspcl_1_1people_1_1_h_o_g_html_a196958c0424bafdc837e8eac2fc902ba"><div class="ttname"><a href="classpcl_1_1people_1_1_h_o_g.html#a196958c0424bafdc837e8eac2fc902ba">pcl::people::HOG::bin_size_</a></div><div class="ttdeci">int bin_size_</div><div class="ttdoc">spatial bin size (default = 8)</div><div class="ttdef"><b>Definition:</b> hog.h:175</div></div>
<div class="ttc" id="aclasspcl_1_1people_1_1_h_o_g_html_a2353ce44ccfa5c5f3e6e6af9956a49f5"><div class="ttname"><a href="classpcl_1_1people_1_1_h_o_g.html#a2353ce44ccfa5c5f3e6e6af9956a49f5">pcl::people::HOG::n_orients_</a></div><div class="ttdeci">int n_orients_</div><div class="ttdoc">number of orientation bins (default = 9)</div><div class="ttdef"><b>Definition:</b> hog.h:178</div></div>
<div class="ttc" id="aclasspcl_1_1people_1_1_h_o_g_html_a25cc756be0f72a274d5c79aa8a40841f"><div class="ttname"><a href="classpcl_1_1people_1_1_h_o_g.html#a25cc756be0f72a274d5c79aa8a40841f">pcl::people::HOG::gradMag</a></div><div class="ttdeci">void gradMag(float *I, int h, int w, int d, float *M, float *O) const</div><div class="ttdoc">Compute gradient magnitude and orientation at each location (uses sse).</div></div>
<div class="ttc" id="aclasspcl_1_1people_1_1_h_o_g_html_a2c14fbec33e2b1acdc080e5d21221cc6"><div class="ttname"><a href="classpcl_1_1people_1_1_h_o_g.html#a2c14fbec33e2b1acdc080e5d21221cc6">pcl::people::HOG::w_</a></div><div class="ttdeci">int w_</div><div class="ttdoc">image width (default = 64)</div><div class="ttdef"><b>Definition:</b> hog.h:169</div></div>
<div class="ttc" id="aclasspcl_1_1people_1_1_h_o_g_html_a3d9ba661e57224491bbd474cf95aa495"><div class="ttname"><a href="classpcl_1_1people_1_1_h_o_g.html#a3d9ba661e57224491bbd474cf95aa495">pcl::people::HOG::compute</a></div><div class="ttdeci">void compute(float *I, float *descriptor) const</div><div class="ttdoc">Compute HOG descriptor with default parameters.</div></div>
<div class="ttc" id="aclasspcl_1_1people_1_1_h_o_g_html_a4530d2cc7ca324ed6c6232c830b89488"><div class="ttname"><a href="classpcl_1_1people_1_1_h_o_g.html#a4530d2cc7ca324ed6c6232c830b89488">pcl::people::HOG::clip_</a></div><div class="ttdeci">float clip_</div><div class="ttdoc">value at which to clip histogram bins (default = 0.2)</div><div class="ttdef"><b>Definition:</b> hog.h:184</div></div>
<div class="ttc" id="aclasspcl_1_1people_1_1_h_o_g_html_a506a4a0ecba28321471236bcbe40d538"><div class="ttname"><a href="classpcl_1_1people_1_1_h_o_g.html#a506a4a0ecba28321471236bcbe40d538">pcl::people::HOG::n_channels_</a></div><div class="ttdeci">int n_channels_</div><div class="ttdoc">image number of channels (default = 3)</div><div class="ttdef"><b>Definition:</b> hog.h:172</div></div>
<div class="ttc" id="aclasspcl_1_1people_1_1_h_o_g_html_a65780ca664c72f0ef9147e511f8e1a8f"><div class="ttname"><a href="classpcl_1_1people_1_1_h_o_g.html#a65780ca664c72f0ef9147e511f8e1a8f">pcl::people::HOG::~HOG</a></div><div class="ttdeci">virtual ~HOG()</div><div class="ttdoc">Destructor.</div></div>
<div class="ttc" id="aclasspcl_1_1people_1_1_h_o_g_html_a731373544464f630fdd84c0f22902334"><div class="ttname"><a href="classpcl_1_1people_1_1_h_o_g.html#a731373544464f630fdd84c0f22902334">pcl::people::HOG::normalization</a></div><div class="ttdeci">void normalization(float *H, int h, int w, int bin_size, int n_orients, float clip, float *G) const</div><div class="ttdoc">Normalize histogram of gradients.</div></div>
<div class="ttc" id="aclasspcl_1_1people_1_1_h_o_g_html_a84107eed96d4c86e8c746b9142ae626e"><div class="ttname"><a href="classpcl_1_1people_1_1_h_o_g.html#a84107eed96d4c86e8c746b9142ae626e">pcl::people::HOG::alFree</a></div><div class="ttdeci">void alFree(void *aligned) const</div><div class="ttdoc">Platform independent aligned memory de-allocation (see also alMalloc).</div></div>
<div class="ttc" id="aclasspcl_1_1people_1_1_h_o_g_html_aab8c16acabf7b17ff3606fb2dce0df7f"><div class="ttname"><a href="classpcl_1_1people_1_1_h_o_g.html#aab8c16acabf7b17ff3606fb2dce0df7f">pcl::people::HOG::gradHist</a></div><div class="ttdeci">void gradHist(float *M, float *O, int h, int w, int bin_size, int n_orients, bool soft_bin, float *H) const</div><div class="ttdoc">Compute n_orients gradient histograms per bin_size x bin_size block of pixels.</div></div>
<div class="ttc" id="aclasspcl_1_1people_1_1_h_o_g_html_ac6197755a499fc00fc9f03bc2231c768"><div class="ttname"><a href="classpcl_1_1people_1_1_h_o_g.html#ac6197755a499fc00fc9f03bc2231c768">pcl::people::HOG::grad1</a></div><div class="ttdeci">void grad1(float *I, float *Gx, float *Gy, int h, int w, int x) const</div><div class="ttdoc">Compute x and y gradients for just one column (uses sse).</div></div>
<div class="ttc" id="aclasspcl_1_1people_1_1_h_o_g_html_ad843ce3dfa59da14e6590c7d29a694d6"><div class="ttname"><a href="classpcl_1_1people_1_1_h_o_g.html#ad843ce3dfa59da14e6590c7d29a694d6">pcl::people::HOG::soft_bin_</a></div><div class="ttdeci">bool soft_bin_</div><div class="ttdoc">if true, each pixel can contribute to multiple spatial bins (using bilinear interpolation) (default =...</div><div class="ttdef"><b>Definition:</b> hog.h:181</div></div>
<div class="ttc" id="aclasspcl_1_1people_1_1_h_o_g_html_ae0f6d73c46634a078fd0ac1d196dac5e"><div class="ttname"><a href="classpcl_1_1people_1_1_h_o_g.html#ae0f6d73c46634a078fd0ac1d196dac5e">pcl::people::HOG::compute</a></div><div class="ttdeci">void compute(float *I, int h, int w, int n_channels, int bin_size, int n_orients, bool soft_bin, float *descriptor)</div><div class="ttdoc">Compute HOG descriptor.</div></div>
<div class="ttc" id="aclasspcl_1_1people_1_1_h_o_g_html_af98b122a2f21e15d930375625138a648"><div class="ttname"><a href="classpcl_1_1people_1_1_h_o_g.html#af98b122a2f21e15d930375625138a648">pcl::people::HOG::acosTable</a></div><div class="ttdeci">float * acosTable() const</div><div class="ttdoc">Build lookup table a[] s.t. a[dx/2.02*n]~=acos(dx).</div></div>
<div class="ttc" id="aclasspcl_1_1people_1_1_h_o_g_html_afa9465c8bf99748ca57814d970c9b7f4"><div class="ttname"><a href="classpcl_1_1people_1_1_h_o_g.html#afa9465c8bf99748ca57814d970c9b7f4">pcl::people::HOG::HOG</a></div><div class="ttdeci">HOG()</div><div class="ttdoc">Constructor.</div></div>
<div class="ttc" id="aclasspcl_1_1people_1_1_h_o_g_html_afff8b80c79c365df8c7ec4d8bdf21a8e"><div class="ttname"><a href="classpcl_1_1people_1_1_h_o_g.html#afff8b80c79c365df8c7ec4d8bdf21a8e">pcl::people::HOG::h_</a></div><div class="ttdeci">int h_</div><div class="ttdoc">image height (default = 128)</div><div class="ttdef"><b>Definition:</b> hog.h:166</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_c5282a543f783098ba78836bc1fb8439.html">people</a></li><li class="navelem"><a class="el" href="dir_6fed84f39eaa40dc2e51b38ff158996a.html">include</a></li><li class="navelem"><a class="el" href="dir_44b5e0c2c86db20f957d3ed20d9edf86.html">pcl</a></li><li class="navelem"><a class="el" href="dir_0d5623f06a5f76e12814df1a8667502d.html">people</a></li><li class="navelem"><b>hog.h</b></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
